import { getSwiperData} from "../../data/api"
// 获取首页轮播图的数据
export const getSwiperListAction = (params)=>{
    return (dispatch)=>{
        // 写异步请求
        getSwiperData().then(res=>{
            dispatch({
                type:"GET_HOME_SWIPER_DATA",
                payload:{
                    swiperList:res.message
                }
            })
        })
    }
}